package com.derbysoft.synxisadapter.commons.model;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Hotel {
    public enum Status {
        ENABLED,
        DISABLED

    }

    @Id
    @Column(length = 50)
    private String id;

    @Column(nullable = false, length = 50)
    private String passport;

    @Column(nullable = false, length = 250)
    private String name;

    @Column(nullable = false, length = 50)
    private String providerPassport;

    @Column(nullable = false, length = 250)
    private String providerName;

    @Enumerated(EnumType.STRING)
    @Column(nullable = false, length = 20)
    private Status status;

    public String getPassport() {
        return passport;
    }

    public void setPassport(String passport) {
        this.passport = passport;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public void setProviderPassport(String providerPassport) {
        this.providerPassport = providerPassport;
    }

    public String getProviderPassport() {
        return providerPassport;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }
}
